#ifndef LOGGING_H 
#define LOGGING_H

#include <string>

// define log level
// 0 = Error
// 1 = Info
// 2 = Debug
#define LogLevel 2

String logMessage;

class Logging
{
	public:
		static void setup() {
			Serial.begin(9600);
		};
		
		static void writeLog(String message, int level) {
			Serial.println(message);
		};
		
		static void writeDebugLog(String message) {
			Logging::writeLog(message, 2);
		};
		
		static void writeInfoLog(String message) {
			Logging::writeLog(message, 1);
		};
		
		static void writeErrorLog(String message) {
			Logging::writeLog(message, 0);
		};
};
#endif // LOGGING_H
